﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMS.DD35.Common;
using AMS.Core.Services;
using AMS.DD35.DbAccess;

namespace AMS.DD35.ServiceLib.Services
{
    public class StaticLookupService : IStaticLookupService
    {
        IStaticLookupConnector _connector;
        ISessionService _session;

        public StaticLookupService(IStaticLookupConnector connector, ISessionService session)
        {
            this._connector = connector;
            this._session = session;
        }

        public Dictionary<int, string> GetRaces()
        {
            return _connector.GetRaces();
        }

        public Dictionary<int, string> GetDeities()
        {
            return _connector.GetDeities();
        }

        public Dictionary<int, string> GetFeats()
        {
            return _connector.GetFeats();
        }

        public Dictionary<int, string> GetSkills()
        {
            return _connector.GetSkills();
        }

        public Dictionary<string, string> GetClasses()
        {
            return _connector.GetClasses();
        }

        public Dictionary<long, string> GetCharacters(object sessionVariable)
        {
            return _connector.GetCharacters(_session.ResolveIdentifier(sessionVariable));
        }
    }
}
